import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SofttestComponent } from './softtest.component';
import {RouterModule, Routes} from '@angular/router';
import { BlackBoxComponent } from './black-box/black-box.component';
import { WhiteBoxComponent } from './white-box/white-box.component';
import { CodeTestComponent } from './code-test/code-test.component';

const softRoutes: Routes = [
  {path: '', component: SofttestComponent, children: [
    {path: 'black-box', component:  BlackBoxComponent},
    {path: 'white-box', component: WhiteBoxComponent},
    {path: 'code-test', component: CodeTestComponent}
  ]}
]
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(softRoutes)
  ],
  declarations: [SofttestComponent, BlackBoxComponent, WhiteBoxComponent, CodeTestComponent]
})
export class SofttestModule { }
